﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="EAAdmin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Login Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="public/css/template.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        body
        {
        	margin:0px auto;
        	font-size:11px;
        	font-family:Tahoma, Arial;
        	text-align:center;
        	background-color:#3F6E9A;
        }
        
        .page
        {
        	margin:0px auto;
            text-align:center;
        }
        
        ._page
        {
        	text-align:left;
        	width:350px;
        	margin:0px auto;
        	height:auto;
        }
        
        .login
        {
        	margin-top:150px;
        	width:100%;
        	float:left;
        	height:auto;
        }
        
        .login .title a
        {
        	margin-left:10px;
        }
        
        .login .title
        {
        	color:white;
        	width:100%;
        	float:left;
        	height:auto;
        	font-weight:bold;
        	font-size:17px;
        }
        
        .login .content
        {
        	margin-top:10px;
        	width:100%;
        	float:left;
        	height:auto;
        }
        
        .login .content .row
        {
        	width:100%;
        	float:left;
        	height:35px;
        }
        
        .login .content .row .label
        {
        	color:Silver;
        	width:120px;
        	float:left;
        	height:auto;
        	font-size:12px;
        }
        
        .login .content .row .control
        {
        	width:230px;
        	float:left;
        	height:auto;
        }
        
        .submit
        {
        	cursor:pointer;
        	font-size:12px;
        	background:none;
        	border:none;
        	font-weight:bold;
        	color:Orange;
        }
        
        .submit:hover
        {
        	font-size:12px;
        	text-decoration:underline;
        }
        
        .text
        {
        	border:4px solid silver;
        	width:220px;
        }
        
        .password
        {
        	border:4px solid silver;
        	width:180px;
        }
        
        .control_right
        {
        	float:right;
        	text-align:right;
        	margin-right:20px;
        }
        
        .require
        {
        	color:orange;
        }
    </style>
</head>
<body>
    
    <div class="page" style="height:auto;min-height:0px;background:none">
        <div class="_page">
            <form id="form1" runat="server" action="/Login.aspx?action=SignIn">
           
            <div class="login">
                 <% if (Attributes.ContainsKey("error") || Attributes.ContainsKey("msg"))
                   { %>
                <div class="body" style="height:auto;min-height:0px;background:none;border:0px">
                <div class="error">
                    <%if (Attributes.ContainsKey("error")){ %>
                    <div class="message">
                        <div><%=Attributes["error"]%></div>
                    </div>
                    <%} %>
                    <%if (Attributes.ContainsKey("msg"))
                      { %>
                    <div class="message_alert">
                        <div><%=Attributes["msg"]%></div>
                    </div>
                    <%} %>
                </div>
                    </div>
                <%} %>
                <div class="title"><a>Web Login Admin</a></div>
                <div class="content">
                    <div class="row">
                        <div class="label">Username: <a class="require">*</a></div>
                        <div class="control"><input class="text" type="text" runat="server" name="username" id="username" /></div>
                    </div>
                    <div class="row">
                        <div class="label">Password: <a class="require">*</a></div>
                        <div class="control"><input class="password" type="password" runat="server" name="password" id="password" /></div>
                    </div>
                    <div class="row">
                        <div class="control_right">
                            <input class="submit" type="submit" value="Sign in" />
                        </div>
                    </div>
                </div>
            </div>
            </form>
        </div>
    </div>
    
</body>
</html>
